<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<link href="${pageContext.request.contextPath }/css/toastr.min.css"
	rel="stylesheet" />
<!-- toastr -->
<script
	src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>
<script src="${pageContext.request.contextPath }/js/jquery-2.1.1.js"></script>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
    String left = (String) request.getAttribute("LEFT");
    System.out.println(left);
%>

<div class="sidebar-collapse">
	<ul class="nav metismenu" id="side-menu">
		<li class="nav-header" style="margin-top: -19px; height: 50px;">
			<div class="dropdown profile-element" style="margin-top: -10px;">
				<span> <img
					style="width: 16%; margin-top: -5px; margin-left: -10px;"
					alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
				</span> <span style="color: white; font-weight: bold; font-size: 16px;">数据工厂</span>
			</div>
			<div class="logo-element">
				<img alt="image" class="img-circle"
					src="${pageContext.request.contextPath}/img/webLogoIcon.png" />
			</div>
		</li>
		<c:if test="${User.user_power == 1 }">
			<li <%="system_overview".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/admin/tosystem_overview"><i
					class="fa fa-th-list"></i> <span class="nav-label">系统概览</span></a></li>

			<li <%="websitelist".equals(left) ? " class=\"active\"" : ""%>
				<%="foreignwebsitelist".equals(left) ? " class=\"active\"" : ""%>
<%-- 				<%="websitelisttest".equals(left) ? " class=\"active\"" : ""%> --%>
				<%="websitemonitorlist".equals(left) ? " class=\"active\"" : ""%>
				<%="messagelist".equals(left) ? " class=\"active\"" : ""%>
				<%="wemedialist".equals(left) ? " class=\"active\"" : ""%>
				<%="smartseedlist".equals(left) ? " class=\"active\"" : ""%>
				<%="smartseedlist".equals(left) ? " class=\"active\"" : ""%>
				<%="screenlist".equals(left) ? " class=\"active\"" : ""%>
				<%="seekweb".equals(left) ? " class=\"active\"" : ""%>
				<%="wechat_list".equals(left) ? " class=\"active\"" : ""%>
				<%="setup".equals(left) ? " class=\"active\"" : ""%>><a
				href="#"><i class="fa fa-desktop"></i> <span class="nav-label">客户端</span><span
					class="label label-warning pull-right">125,000+</span></a>
				<ul class="nav nav-second-level collapse">
					<li <%="websitelist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/website/listwebsite"><span
							class="nav-label">网站列表</span></a></li>
<%-- 					<li <%="websitelisttest".equals(left) ? " class=\"active\"" : ""%>><a --%>
<%-- 						href="${pageContext.request.contextPath}/website/listwebsitetest"><span --%>
<!-- 							class="nav-label">网站列表test</span></a></li> -->
							<li <%="websitemonitorlist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/website/websitemonitorlist"><span
							class="nav-label">网站监控列表</span></a></li>
					<li <%="foreignwebsitelist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/website/foreignlistwebsite"><span
							class="nav-label">外媒网站列表</span></a></li>		
					<li <%="messagelist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/message/run"><span
							class="nav-label">资讯列表页</span></a></li>
					<li
						<%="wemedialist".equals(left) ? " class=\"active\"" : "wemedialist"%>><a
						href="${pageContext.request.contextPath}/wemedialist/run"><span
							class="nav-label">自媒体列表</span></a></li>
					<!-- <li <%="seedlist".equals(left) ? " class=\"active\"" : ""%>><a  -->
					<!-- href="${pageContext.request.contextPath}/website/listseed"><span
							class="nav-label">种子管理</span></a></li>  -->
					<li <%="smartseedlist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/website/smartseedlist"><span
							class="nav-label">智能种子管理</span></a></li>
					<li <%="screenlist".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/screen/seedlist"><span
							class="nav-label">抓取错误管理</span></a></li>
					<li <%="seekweb".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/seekweb/toweb"><span
							class="nav-label">问题网站管理(未完成)</span></a></li>
					<!-- <li <%="keywordlist".equals(left) ? " class=\"active\"" : ""%>><a -->
					<!-- href="${pageContext.request.contextPath}/website/listkeyword"><span
							class="nav-label">关键词管理</span></a></li> -->
					<li <%="wechat_list".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/social/wechat_list">微信公共号</a></li>

					<li <%="setup".equals(left) ? " class=\"active\"" : ""%>><a
						href="${pageContext.request.contextPath}/screen/setup">关键词列表</a></li>
				</ul></li>
			<li <%="datasource".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/data-source/datasource"><i
					class="fa fa-filter"></i> <span class="nav-label">数据源</span></a></li>
			<li <%="searchenginelist".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/searchenging/configlist"><i
					class="fa fa-gear"></i> <span class="nav-label">搜索引擎配置</span></a></li>
			<li <%="colin".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/shielding/run"><i
					class="fa fa-ban"></i> <span class="nav-label">网站屏蔽</span></a></li>
			
			<li <%="hot_dict".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/dict/hot"><i
					class="fa fa-ban"></i> <span class="nav-label">热词库</span></a></li>
			<li <%="stop_dict".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/dict/stop"><i
					class="fa fa-ban"></i> <span class="nav-label">停词库</span></a></li>

			<li <%="dimseed".equals(left) ? " class=\"active\"" : ""%>><a
				href="${pageContext.request.contextPath}/website/dimseed"><i
					class="fa fa-search"></i> <span class="nav-label">种子关键词搜索</span></a></li>
		</c:if>
	</ul>

</div>
<script>
    function noPermission() {
        toastr.error('暂无权限');
    }

    function moreMenuItems() {
        $('#moreMenuItems').css('display', '');
    }
/*     // 点击取消高亮
    $("#side-menu li").click(function () {
    	  $(this).siblings().removeClass("active");
    	  $(this).addClass("active");
	});
     */
   
//     $("#side-menu  li  ul  li").click(function () {
//       $("#side-menu  li  ul").removeClass("nav nav-second-level collapse");
//       $("#side-menu  li  ul").addClass("nav nav-second-level collapse in");
//   	  $(this).siblings().removeClass("active");
//   	  $(this).addClass("active");
// 	});
  
    
</script>